<template>
  <div class="find">
    <div class="head">
      <div class="was">
        <div :class="num == 0 ? 'con' : ''" @click="image">图片</div>
        <div :class="num == 1 ? 'con' : ''" @click="consulting">咨询</div>
        <div :class="num == 2 ? 'con' : ''" @click="character">人物</div>
      </div>
    </div>
    <router-view></router-view>
  </div>
</template>
<script>
export default {
  data() {
    return {
      num: 0,
    };
  },
  methods: {
    image() {
      this.num = 0;
      this.$router.push("/find/image");
    },
    consulting() {
      this.num = 1;
      this.$router.push("/find/consulting");
    },
    character() {
      this.num = 2;
      this.$router.push("/find/character");
    },
  },
};
</script>
<style lang="less">
.find {
  .head {
    width: 100%;
    height: 60px;
    position: fixed;
    z-index: 10;
    top: 0;
    background-color: white;
    .was {
      line-height: 60px;
      margin: 0 auto;
      text-align: center;
      left: 20%;
      width: 60%;
      display: flex;
      justify-content: space-around;
      .con {
        color: #fc6976;
      }
      div {
        width: 30%;
      }
    }
  }
}
</style>